package com.dingpeikeji.quickdeer.modules.rentproduct.dao;

import java.util.List;

import com.dingpeikeji.quickdeer.core.common.persistence.CrudDao;
import com.dingpeikeji.quickdeer.core.common.persistence.annotation.MyBatisDao;
import com.dingpeikeji.quickdeer.modules.rentproduct.entity.DemandsReact;
import com.dingpeikeji.quickdeer.modules.rentproduct.entity.TDemands;

/**
 * 用户需求DAO接口
 * @author wuhao
 * @version 2016-08-08
 */
@MyBatisDao
public interface TDemandsDao extends CrudDao<TDemands> {
	public List<DemandsReact> findDemandsReactList(TDemands tDemands);
	public List<TDemands> findWaitList(TDemands tDemands);
	public DemandsReact getDemandsReact(Integer reactid);
	public void cancelReact(DemandsReact dr);
	public void updateState(String demandsid);
	public String getSendAddress(String demandid);
	public void deleteDemand(Integer demandid);
	public TDemands getDemandById(Integer demandid);
	public void updateOrderId(String orderid, Integer demandid);
}